<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:n="http://java.sun.com/jsf/composite/nemesis"
                template="./../modelo/padrao.xhtml">
    <ui:define name="titulo">Listar Cidade</ui:define>
    <ui:define name="corpo">

        <h:form id="formFiltrar">
            <h:panelGrid>
                <h:outputLabel value="Nome"/>
                <h:inputText value="#{cidadeListarControle.nome}" size="50"/>
            </h:panelGrid>
            <n:barraListar controle="#{cidadeListarControle}"/>
        </h:form>

        <h:form id="formListar" >
            <n:tabela controle="#{cidadeListarControle}" navegacao="/cidade/editar.xhtml">
                <p:column width="500">
                    <f:facet name="header">
                        <h:outputText value="Nome"/>
                    </f:facet>
                    <h:outputText value="#{objeto.nome}"/>
                </p:column>
            </n:tabela>
        </h:form>
        
    </ui:define>
</ui:composition>
